package com.example.designPatterns.callback;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Title: CallBack
 * @Description: TODO
 * @Date 2019/8/8 17:46
 */
public class CallBackTest {

    public static void main(String[] args) {

        CallBack callBack = new Manager();
        IPerson person = new User();
        person.doSomething(callBack, "xxxxxxxxxxx");
        List<String> keyList = Arrays.asList("errorNumKey", "lockNumKey");
        List<String> lockList = new ArrayList<>();
        lockList.add("1");
        lockList.add("1222222");
        lockList.addAll(keyList);
        lockList.stream().forEach(r-> System.out.println(r));
    }


}
